package com.mccrea.pattern.handler;

/**
 * @Classname Leader
 * @Description 领导类
 * @Date 2021/5/24 0024 16:27
 * @Created by Mccrea_Gao
 */
public abstract class Leader {

    /**
     * 下一节点处理人
     */
    private Leader next;

    public Leader getNext() {
        return next;
    }

    public void setNext(Leader next) {
        this.next = next;
    }

    abstract void handleRequest(int leaveDays);
}
